// app.js
import './utils/index'
import './utils/request'
App({
  onLaunch() {
    this.getToken()
  },
  globalData: {},
  token: '',
  getToken() {
    wx.getStorage({
      key: 'share-token',
      success: (res) => {
        this.token = res.data
      },
    });

  },
  setToken(token) {
    this.token = `Bearer ${token}`
    wx.setStorageSync('share-token', this.token);
  }
})
